<style>
    .thTable {
        width: 100%;
    }

    .thTable tr {
        border-bottom: 1px solid #E8E8E8;
    }

    .thTable div {
        text-align: left;
        line-height: 22px;
        padding: 17px 10px;
    }

    .thTable thead tr,
    .thTable tbody tr:hover {
        background-color: #FAFAFA
    }

    .thTable thead div {
        color: rgba(0, 0, 0, 0.85);
    }

    .thTable tbody div {
        color: rgba(22, 6, 6, 0.65);
    }
</style>

<table class="thTable">
    <thead>
        <tr>
            <th style="width:10%"><div><?php echo $this->lang->idAB;?></div></th>
            <th style="width:10%"><div><?php echo $this->lang->priAB;?></div></th>
            <th style="width:20%"><div>需求标题</div></th>
            <th style="width:13%"><div><?php echo $this->lang->openedByAB;?></div></th>
            <th style="width:12%"><div><?php echo $this->lang->assignedToAB;?></div></th>
            <th style="width:10%"><div><?php echo $this->lang->story->estimateAB;?></div></th>
            <th style="width:10%"><div><?php echo $this->lang->statusAB;?></div></th>
            <th style="width:15%"><div><?php echo $this->lang->story->stageAB;?></div></th>
        </tr>
    </thead>
	<?php if($stories):?>
	<tbody>
		<?php foreach($stories as $story):?>
		<tr>
			<td><div class="overflow"><?php echo sprintf('%03d', $story->id) . html::hidden('stories[]', $story->id)?></div></td>
			<td><div class="overflow"><?php echo zget($this->lang->story->priList, $story->pri);?></div></td>
			<td><div class="overflow"><?php echo $story->title?></div></td>
			<td><div class="overflow"><?php echo zget($users, $story->openedBy);?></div></td>
			<td><div class="overflow"><?php echo zget($users, $story->assignedTo);?></div></td>
			<td><div class="overflow"><?php echo $story->estimate?></div></td>
			<?php $status = $this->processStatus('story', $story);?>
			<td><div class="overflow"><span class="status-story status-<?php echo $story->status?>"><?php echo $status;?></span></div></td>
			<td><div class="overflow"><?php echo zget($this->lang->story->stageList, $story->stage);?></div></td>
		</tr>
		<?php endforeach;?>
	</tbody>
	<?php else:?>
		<tr><td colspan='8'><div class="overflow"><?php echo $this->lang->testreport->none;?></td></div></tr>
	<?php endif?>
</table>
